package com.yong.stub;

import org.apache.cxf.jaxws.JaxWsServerFactoryBean;
import com.yong.wsdl.CrmInterfaceImpl;

/**
 * create by yongli on 2022-04-24 16:31
 */

public class CxfApp {
    public static void main(String[] args) {

        JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
        factory.setServiceClass(CrmInterfaceImpl.class);
        //服务发布的地址
        factory.setAddress("http://localhost:8999/services/hello");
        factory.setServiceBean(new CrmInterfaceImpl());
        factory.create();


    }
}
